﻿/***************************************************************************
*		功能：     客户付款记录实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 客户付款记录
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_PayRecode", EntityName = "PayRecode")]
	public partial class PayRecode :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return PayRecodeId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// PayRecodeId
		/// </summary>
		[HColumn("PayRecodeId", Remake = "PayRecodeId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int PayRecodeId { set; get; }
        

		/// <summary>
		/// 客户id
		/// </summary>
		[HColumn("CustomId", Remake = "客户id", DataType = "int")]
		public int CustomId { set; get; }
        

		/// <summary>
		/// 收款单时间
		/// </summary>
		[HColumn("Time", Remake = "收款单时间", DataType = "datetime")]
		public DateTime Time { set; get; }
        

		/// <summary>
		/// 收款人
		/// </summary>
		[HColumn("Employee", Remake = "收款人", DataType = "nvarchar" , Length =40)]
		public string Employee { set; get; }
        

		/// <summary>
		/// 应收金额
		/// </summary>
		[HColumn("NeedPay", Remake = "应收金额", DataType = "decimal" , Length =14)]
		public decimal NeedPay { set; get; }
        

		/// <summary>
		/// 收款状态
		/// </summary>
		[HColumn("Status", Remake = "收款状态", DataType = "int")]
		public int Status { set; get; }
        

		/// <summary>
		/// 收款明细
		/// </summary>
		[HColumn("Details", Remake = "收款明细", DataType = "text" , IsNullable = true)]
		public string Details { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// PayRecodeId
			 /// </summary>
			 public static Field PayRecodeId = new Field("T_PayRecode","PayRecodeId");
	    	 

			 /// <summary>
			 /// 客户id
			 /// </summary>
			 public static Field CustomId = new Field("T_PayRecode","CustomId");
	    	 

			 /// <summary>
			 /// 收款单时间
			 /// </summary>
			 public static Field Time = new Field("T_PayRecode","Time");
	    	 

			 /// <summary>
			 /// 收款人
			 /// </summary>
			 public static Field Employee = new Field("T_PayRecode","Employee");
	    	 

			 /// <summary>
			 /// 应收金额
			 /// </summary>
			 public static Field NeedPay = new Field("T_PayRecode","NeedPay");
	    	 

			 /// <summary>
			 /// 收款状态
			 /// </summary>
			 public static Field Status = new Field("T_PayRecode","Status");
	    	 

			 /// <summary>
			 /// 收款明细
			 /// </summary>
			 public static Field Details = new Field("T_PayRecode","Details");
	    	 

        }
        #endregion
		  
	 
	}
    
}